<?php
/**
 *	Data Model of Right Objects.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			12.02.2006
 *	@version		0.6
 */
/**
 *	Data Model of Right Objects.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			12.02.2006
 *	@version		0.6
 */
final class Model_RightObject extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$rightObjectId		ID of Right Object
	 *	@return		void
	 */
	public function __construct( $rightObjectId = NULL )
	{
		$tablename	= "rightobjects";
		$fields	= array (
			"rightobject_id",
			"title",
			"description",
		);
		$primaryKey	= "rightobject_id";
		$indices	= array( "title" );
		parent::__construct( $tablename, $fields, $primaryKey, $rightObjectId );
		$this->setForeignKeys ( $indices );
	}
}
?>